if __name__ == '__main__':
    n, e = map(int, input().split())
    for _ in range(2):
        map(int, input().split())
        print(_)

